export const imgerror = {
  inserted(el, binding) {
    el.onerror = function() {
      el.src = binding.value;
    };
  }
};

export const imgunload = {
  componentUpdated(el, binding) {
    el.src = el.src || binding.value;
  }
};
